package com.demo.demo.bean;

import java.time.LocalDateTime;

public class InventoryRecord {
    private Long id;
    private LocalDateTime timestamp;
    private String productName;
    private Integer quantity;
    private String type; // "in" 或 "out"
    private String location;
    private String employeeUsername;

    // Getters and Setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getEmployeeUsername() {
        return employeeUsername;
    }

    public void setEmployeeUsername(String employeeUsername) {
        this.employeeUsername = employeeUsername;
    }

    @Override
    public String toString() {
        return "InventoryRecord{" +
                "id=" + id +
                ", timestamp=" + timestamp +
                ", productName='" + productName + '\'' +
                ", quantity=" + quantity +
                ", type='" + type + '\'' +
                ", location='" + location + '\'' +
                ", employeeUsername='" + employeeUsername + '\'' +
                '}';
    }
}
